
OCCR1 = 1950;
OCCR2 = 1890;
OCCR3 = 2200;

OCNT = [0:4095 4094:-1:0];
OCCR1_SD = ones(size(OCNT)) * OCCR1;
OCCR2_SD = ones(size(OCNT)) * OCCR2;
OCCR3_SD = ones(size(OCNT)) * OCCR3;

CH1 = OCCR1_SD < OCNT;
CH2 = OCCR2_SD < OCNT;
CH3 = OCCR3_SD < OCNT;

VectorX = 0:(4095*2);

close all;
figure();
plot(VectorX, CH1, VectorX, CH2, VectorX, CH3, 'LineWidth', 2);
legend('CH1', 'CH2', 'CH3');